//
//  WXBookModel.h
//  WXReader
//
//  Created by Andrew on 2018/5/27.
//  Copyright © 2018年 Andrew. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "TL_CatalogModel.h"
#import "TLTagsModel.h"
#import "TLRechargeGoodsModel.h"
#import "TL_CommentsModel.h"
#import "TL_ProductionChapterModel.h"

@interface TL_ProductionModel : NSObject <NSCopying>

@property (nonatomic, assign) NSInteger production_id;          // 作品id

@property (nonatomic, assign) NSUInteger log_id;                // 阅读记录id

@property (nonatomic, copy) NSString *name;                     // 作品名

@property (nonatomic, copy) NSString *title;

@property (nonatomic, copy) NSString *flag;                     // 作品角标

@property (nonatomic, copy) NSString *cover;                    // 封面

@property (nonatomic, copy) NSString *horizontal_cover;         // 横封面

@property (nonatomic, copy) NSString *vertical_cover;           // 竖封面

@property (nonatomic, copy) NSString *author;                   // 作者

@property (nonatomic, copy) NSString *author_name;              // 作品封面作家名称

@property (nonatomic, copy) NSString *author_note;              // 作品封面作家的话

@property (nonatomic, assign) NSInteger author_id;              // 作品封面作家id

@property (nonatomic, copy) NSString *author_avatar;            // 作品封面作家头像

@property (nonatomic, copy) NSString *finished;                 // 连载状态

@property (nonatomic, copy) NSString *visited;                  // 访问数

@property (nonatomic, copy) NSString *favors;             // 全部收藏数

@property (nonatomic, assign) NSInteger free_chapters;          // 免费章节数

@property (nonatomic, assign) NSInteger total_comment;          // 作品评论人数

@property (nonatomic, copy) NSString *issue_time;               // 发布时间

@property (nonatomic, copy) NSString *total_views;                  // 热度值

@property (nonatomic, copy) NSString *hot_num;// 热度值(带热度值文字)

@property (nonatomic, copy) NSString *fat_favors;               // 关注数

@property (nonatomic, copy) NSString *production_descirption;   // 作品简介

@property (nonatomic, copy) NSString *last_chapter_time;        // 最新更新时间

//  用于计算是否有更新
@property (nonatomic, assign) NSInteger update_time; // 更新时间

@property (nonatomic, assign) NSInteger local_update_time; // 本地更新时间

@property (nonatomic, copy) NSString *last_chapter;             //最新章节名

@property (nonatomic, copy) NSString *record_title;             // 阅读记录章节名称

@property (nonatomic, assign) NSInteger total_chapters;         // 全部章节数

/// 云端阅读记录章节id
@property (nonatomic, assign) NSInteger reading_chapter_id;

/// 榜单的热度字段
@property (nonatomic, copy) NSString *heat_number;

@property (nonatomic, assign) BOOL is_readed;                   // 是否已读

@property (nonatomic, assign) BOOL is_baoyue;                   // 是否是vip作品

@property (nonatomic, assign) BOOL is_recommend;                // 是否是推荐作品

@property (nonatomic, assign) NSString *display_no;              // 榜单列表用于排序使用(只有榜单列表会使用)

/// 阅读记录接口会返回此字段
@property (nonatomic, assign) NSInteger chapter_index;

@property (nonatomic, assign) TL_ProductionType productionType;        // 作品类别

@property (nonatomic, strong) NSArray <TL_ProductionChapterModel *> *chapter_list;        // 章节目录

@property (nonatomic, copy) NSArray<TL_ProductionChapterModel *> *list;     // 新章节目录

//@property (nonatomic, strong) NSArray <TL_TagModel *> *tag;           // 作品分类
//@property (nonatomic, strong) NSArray <TL_TagModel *> *book_tags; // 作品标签

@property (nonatomic, copy) NSString *cat_name;

@property (nonatomic, copy) NSString *cat;

@property (nonatomic, copy) NSString *cat_id;

@property (nonatomic, copy) NSString *bg_color;

@property (nonatomic, copy) NSString *bg_image;

@property (nonatomic, assign) BOOL isShowAllIntro; // 展开简介

@property (nonatomic, assign) BOOL is_vip_show; // 是否展示VIP购买标识

@property (nonatomic, assign) BOOL collectStatus; // 收藏状态

@property (nonatomic, assign) int readStatus; // 是否看过状态

@property (nonatomic, assign) BOOL isEnd; // 是否完结 要么完结要么有更新

//@property (nonatomic, strong) NSArray<TLTagsModel*>* osTagList;
//
//@property (nonatomic, strong) NSArray<TLTagsModel*>* categoryList;

@property (nonatomic, strong) TLRechargeGoodsModel *osGoods;

@property (nonatomic, strong) NSArray<TL_CommentsDetailModel *> *osCommentList;

@property (nonatomic, copy) NSString *worksType;

@end
